/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package weka.attributeSelection.semiAS.semiClusterAS;

import weka.core.Instances;

/**
 *
 * @author Administrator
 */
public class FeatClassEvalM implements Score {

    protected final Instances m_labeledInstances;
    protected final Instances[] m_data;
    private FeatClassEval m_featClassEval;

    public FeatClassEvalM(FeatClassMethod option, final Instances data, final Instances[] classData) {
        m_labeledInstances = data;
        m_data = classData;
        switch (option) {
            case Correlate:
                m_featClassEval = new CorrFeatClassEval(m_labeledInstances);
                break;
            case Fisher:
                m_featClassEval = new FisherFeatClassEval(m_labeledInstances, m_data);
                break;
            default:
                m_featClassEval = new CorrFeatClassEval(m_labeledInstances);
                break;
        }
    }

    public double getScore(int i) {
        return m_featClassEval.getScore(i);
    }
}
